package com.qhg.saas_server.controller;


import com.github.pagehelper.PageInfo;
import com.qhg.saas_server.empty.Result;
import com.qhg.saas_server.pojo.dto.StoreSalesDto;
import com.qhg.saas_server.service.StoreSalesService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Slf4j
@RequestMapping("/StoreSales")
@Api("门店销售动态")
@RestController
@CrossOrigin
public class StoreSalesController {

    @Autowired
    StoreSalesService storeSalesService;

    @PostMapping
    public Result getStoreSalesByConditon(@RequestBody StoreSalesDto storeSalesDto){

       PageInfo<StoreSalesDto> list = storeSalesService.getStoreSalesByConditon(storeSalesDto);

        return Result.success(list);
    }
}
